<?php defined('G_IN_SYSTEM')or exit('No permission resources.'); ?><!DOCTYPE html>
<html>
<head>
    <title>账户明细</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link href="<?php echo G_TEMPLATES_CSS; ?>/wx/comm.css" rel="stylesheet">
    <link href="<?php echo G_TEMPLATES_CSS; ?>/wx/user.css" rel="stylesheet">
    <script src="<?php echo G_TEMPLATES_JS; ?>/wx/jquery-2.1.4.min.js"></script>
    <style>
       body{
          background-color:#F3F3F3;
      }	
  </style>
</head>
<body>
    <?php include templates("mobile/index","header");?> 

    <div class="account-main">
       <ul>
           <li><span class="account-main-fl">支出</span></li>
           <li><span class="account-main-fl select">充入</span></li>
       </ul>
       <div class="clear"></div>
   </div>

   <!--支出-->
   <div class="account-page" style="display:none;">
       <ul class="account-out">
        <?php if($buyacount): ?>
        <?php $ln=1;if(is_array($buyacount)) foreach($buyacount AS $buyacount): ?>
        <li>
        	<div class="left">
                <span class="account-goods">神奇的摩托车</span><br />
                <span class="page-left gray">
                   <?
                   echo date("Y-m-d H:i:s",$buyacount['time'])
                   ?>
               </span>
           </div>
           <div class="right">
               <span class="page-right" style="margin-top:10px;">-<?php echo $buyacount['money']; ?>元</span>
           </div>
       </li>
       
       <?php  endforeach; $ln++; unset($ln); ?>
       <?php  else: ?>
       <div class="account-empty">
           去消费
       </div>
       <?php endif; ?>
       
   </ul>
</div>

<!--充入-->
<div class="account-page">
	<ul class="account-in">
        <?php if($addacount): ?>
        <?php $ln=1;if(is_array($addacount)) foreach($addacount AS $addacount): ?>
        <li>
        	<span class="page-left gray" style="margin-top:10px;">
                <?
                echo date("Y-m-d H:i:s",$addacount['time'])
                ?>
            </span>
            <span class="page-right" style="margin-top:10px;">+<?php echo $addacount['money']; ?>元</span>
        </li>  
        <?php  endforeach; $ln++; unset($ln); ?> 
        <?php  else: ?>
        <div class="account-empty">
           去充值
       </div>
       <?php endif; ?>
   </ul>
</div>
<?php include templates("mobile/index","footer");?>
<script>
    $(document).ready(function(e) {
        $(".account-main ul li").click(function(){
          $(".account-main-fl").removeClass("select");
          var sw=$(".account-main ul li").index(this);
          $(".account-main ul li").eq(sw).children("span").addClass("select");
          $(".account-page").eq(sw).show().siblings(".account-page").hide();
      })
    });
</script>
</body>
</html>
